<?
namespace app\api;
// use app\model\Test as T;
use core\Model;
class Test
{
    #[Attr(name: '数据导入')]
    public  function create($a)
    {
       return Model::u('test')->check('insert')->insert();
    }

    #[Attr(name: '数据导入')]
    public  function delete($a)
    {
       return Model::u('test')->check('delete')->where('id',$a['id'])->delete();
    }

    #[Attr(name: '数据导入')]
    public  function update($a)
    {
       return Model::u('test')->check('update')->where('id',$a['id'])->update();
    }

    #[Attr(name: '数据导入')]
    public  function list($a)
    {
       return Model::u('test')->before()->parse($a)->fields('id,userName')->list();
    }
}